import request from "../../request"


// 登录
export function loginRequest(data: { username: string; password: string }) {
  return request({
    url: 'login',
    method: 'post',
    data,
  })
}


//  根据角色获取菜单
export function getUserMenusByRoleId(data: {id: string}) {
  return request({
    url: 'role/getmenufromrole?role_id=' + data.id,
    method: 'get'
  })
}

// 退出系统
export function loginOutApi(){
    return request({
        url: 'logout'
    })
}
